import { reactive, ref } from 'vue'
import { taskAddApi, taskDeleteApi } from '@/api/ReviewBusiness/01Project/project'
import useInstance from '@/hooks/useInstance';
import { EditType } from '@/type/BaseEnum'
// 需要什么数据 1 图片数据 2 标注数据 3 保存按钮 4 框选逻辑 5 分析数据 6 切换分析
export default function DocumentReview() {
  const RefDocumentReview = ref<{ show: (type: string, row?: any) => void }>()
  // const rowValue=ref()
  const { global, proxy } = useInstance()
  const DocumentData = reactive({
    // 1 左侧数据 2 中间数据 3 右侧数据
    AudioRow: {} as any
  })
  const DocumentBtn = (row) => {
    RefDocumentReview?.value?.show(EditType.ADD, row)
    DocumentData.AudioRow = row
  }
  return {
    RefDocumentReview, DocumentBtn, DocumentData
  }
}